<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org"><!-- 引入命名空间 -->
<head>
    <title>山朴奈竞赛 - 个人信息修改</title>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}"></link>
    <link rel="stylesheet" th:href="@{/css/common.css}">
    <style>
        form {
            margin: 20px;
            border: 1px solid #ccc;
            padding: 20px;
            border-radius: 5px;
        }
		body {
				background-image: url('../img/article.jpg');
		        background-size: cover;
		        background-position: center;
		        background-repeat: no - repeat;
		    }
			a {
			    color: rgb(128, 128, 128);
			    text-decoration: none;
			    margin-left: 15px;
			    transition: color 0.3s ease;
			}

			a:hover {
			    color: rgb(0, 0, 64);
			}

    </style>
</head>

<body>
    <div class="nav">
        <h5>山朴奈</h5>
		<div class="spacer"></div>
		<a th:href="@{/}">首页</a>
		<a th:href="@{/user/oneself}">修改信息</a>
		<a th:href="@{/contest/view}">竞赛项目列表</a>
		<a th:href="@{/team/list}">竞赛队伍列表</a>
		<a th:href="@{/picture/list}">上传获奖证书</a>
		<a th:href="@{/application/listStudent}">我的竞赛</a>
		<a th:href="@{/login}">登录管理</a>

		
		</div>
    <h1>个人信息修改</h1>
    <form action="#" th:action="@{/user/update}" method="post">

        <div class="form-group">
            <label for="username">用户名</label>
            <input type="text" id="username" name="username" th:value="${user.username}" required />
        </div>
		<div class="form-group">
		    <label for="pwd">密   码</label>
		    <input type="pwd" id="pwd" name="pwd" th:value="${user.pwd}" required />
		</div>
        <div class="form-group">
            <label for="email">邮   箱</label>
            <input type="email" id="email" name="email" th:value="${user.email}" required />
        </div>

        <input type="submit" value="保存修改" class="btn btn-primary" />
    </form>
</body>

</html>